package com.cyan.app.workflow.fragment;

import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import com.cyan.app.workflow.R;
import com.cyan.app.workflow.base.fragment.BaseFragment;

/**
 * Created by GivenTang on 2015/11/1.
 */
public class MessageFragment extends BaseFragment {
    public static final String TAG = "MessageFragment";
    private TextView top_bar_middle;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        _RootView = inflater.inflate(R.layout.layout_message, null);
        return _RootView;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initView();
        Toast toast = Toast.makeText(getActivity(),"该模块拼命开发中，敬请期待",Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.CENTER, 0, 0);
        toast.show();
    }

    @Override
    public void onResume() {
        super.onResume();

    }

    @Override
    public void onPause() {
        super.onPause();
    }

    private void initView(){
        top_bar_middle = (TextView) _RootView.findViewById(R.id.top_bar_middle);
        top_bar_middle.setText(R.string.icon_message);
    }
}
